﻿using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;

namespace Fee.Mapping
{
    public class ProjectSettingMapping : IEntityTypeConfiguration<ProjectSetting>
    {
        public void Configure(EntityTypeBuilder<ProjectSetting> build)
        {
            build.HasKey(_ => _.Id);
            build.Property(_ => _.Id).ValueGeneratedOnAdd();
            build.Property(_ => _.ConstructionType);

            build.Property(f => f.ProjectNumber);
            build.Property(f => f.StationType);
        

            build.ToTable("fee_ProjectSetting");
        }
    }
}